package cn.dai.test.da.linkedlist.singleLL;

/**
 * @author ArkD42
 * @file Jdbc01
 * @create 2020 - 06 - 07 - 17:36
 */
public class HeroNode {

    private int no;
    private String name;
    private String alias;

    private HeroNode the_next;

    public HeroNode(int no, String name, String alias) {
        this.no = no;
        this.name = name;
        this.alias = alias;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public HeroNode getThe_next() {
        return the_next;
    }

    public void setThe_next(HeroNode the_next) {
        this.the_next = the_next;
    }

    @Override
    public String toString() {
        return "HeroNode{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", alias='" + alias + '\'' +
                ", the_next is " + the_next +
                '}';
    }
}
